package com.fuxi;

import javax.naming.Name;
import java.util.Scanner;

public class fuxi_dome07test {
    public static void main(String[] args) {
        fuxi_demo07 fx = new fuxi_demo07();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生的名字");
        String sname = sc.next();
        System.out.println("请输入学生的年龄");
        int  sage = sc.nextInt();
        System.out.println("请输入学生的班级");
        String sgrade = sc.next();

        fx.setName(sname);
        fx.setAge(sage);
        fx.setGrade(sgrade);
        String s = fx.toString();

        System.out.println(s);

    }
}
